/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package upeu.edu.pe.servicio;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import upeu.edu.pe.dao.EstandarDao;
import upeu.edu.pe.modelo.SauEstandar;

/**
 *
 * @author pc
 */
@Service
@Transactional(propagation= Propagation.SUPPORTS, readOnly=true)
public class EstandarServicioImplement implements EstandarServicio{
    @Autowired
    public EstandarDao estandarDao;
    
    @Override
    public List<SauEstandar> listaEstandar(){
        return estandarDao.listaEstandar();
    }
    
    @Override
    public void insertarEstandar(SauEstandar estandar){
        estandarDao.insertarEstandar(estandar);
    }
    
    @Override
    public void eliminarEstandar(String idEstandar){
        estandarDao.eliminarEstandar(idEstandar);
    }
   
    @Override
    public SauEstandar buscarEstandarId(int idEstandar){
        return estandarDao.buscarIdEstandar(idEstandar);
    }
    
    @Override
    public void actualizarEstandar(SauEstandar estandar){
        estandarDao.actualizarEstandar(estandar);
    }
    
    
}
